SUBDIRS = compile_serve oj_serve

.PHONY: all

all:
	@list='$(SUBDIRS)'; for subdir in $$list; do \
		echo "Building in $$subdir";\
		$(MAKE) -C $$subdir;\
	done

.PHONY: clean

clean:
	@list='$(SUBDIRS)'; for subdir in $$list; do \
		echo "Cleaning in $$subdir";\
		$(MAKE) -C $$subdir clean;\
	done 